float oneshot_get_cm_range_sensor_gp2ya710(const int iInfraPin)
{
  const float fScale = 5.0f/1024.0f;
  float fDistance = -1.0f;

  int iAnalogValue = analogRead(iInfraPin);
  if(iAnalogValue < 500)
  {
    fDistance = 3.8631e8 * pow(iAnalogValue, -2.438f);
  }

  // retour en cm
  return fDistance;
}

